class Objects {

  static isNull(obj) {
    return !obj || typeof obj === 'undefined' || obj === undefined
  }

  static isNotNull(obj) {
    return !Objects.isNull(obj);
  }

  static isEmpty(obj) {
    return Object.keys(obj).length === 0;
  }

  static changeUndefinedToNull(o) {
    if (Objects.isNull(o)) {
      return undefined;
    }
    return o;
  }

  static isSame(obj1, obj2) {
    if (Objects.isNull(obj1) && Objects.isNull(obj2)) return true;
    if (Objects.isNull(obj1) || Objects.isNull(obj2)) return false;
    return obj1 === obj2
  }

}